package com.sankuai.project.model.convertData;

import com.sankuai.project.model.DataDetailList;
import com.sankuai.project.model.ListItemDetail;
import com.sankuai.project.model.TotalData;

/**
 * @Author：YH
 * @Description：
 * @Date:Created in 2024/1/10 0:19
 */
public class ConvertUtils {
    public static TotalData convertData(ListItemDetail detailRequestData, DataDetailList detailRoot) {
        TotalData totalData = new TotalData();
        totalData.setOverDate(detailRoot.getOverDate());
        totalData.setNote(detailRoot.getNote());
        totalData.setAddTime(detailRoot.getAddTime());
        totalData.setProofOrSerialCode(detailRoot.getProofOrSerialCode());
        totalData.setSubmitDate(detailRoot.getSubmitDate());
        totalData.setFullNameD(detailRoot.getFullName());
        totalData.setUpdateTime(detailRoot.getUpdateTime());
        totalData.setExpiryDate(detailRoot.getExpiryDate());
        totalData.setApplyOrgan(detailRoot.getApplyOrgan());
        totalData.setBeginDate(detailRoot.getBeginDate());
        totalData.setHasStart(detailRoot.getHasStart());
        totalData.setSfjz(detailRoot.getSfjz());
        totalData.setScope(detailRoot.getScope());
        totalData.setFinishDateD(detailRoot.getFinishDate());
        totalData.setIdD(detailRoot.getId());
        totalData.setPlace(detailRoot.getPlace());
        totalData.setStateFlagNameD(detailRoot.getStateFlagName());
        totalData.setProjectNameD(detailRoot.getProjectName());
        totalData.setTotalInvest(detailRoot.getTotalInvest());
        totalData.setIsValidity(detailRoot.getIsValidity());
        totalData.setId(detailRequestData.getId());
        totalData.setProjectId(detailRequestData.getProjectId());
        totalData.setProjectCode(detailRequestData.getProjectCode());
        totalData.setProjectName(detailRequestData.getProjectName());
        totalData.setProCodeLeaseDays(detailRequestData.getProCodeLeaseDays());
        totalData.setProjectState(detailRequestData.getProjectState());
        totalData.setStateDetail(detailRequestData.getStateDetail());
        totalData.setApplyTime(detailRequestData.getApplyTime());
        totalData.setProjectDirName(detailRequestData.getProjectDirName());
        totalData.setAuditType(detailRequestData.getAuditType());
        totalData.setAuditTypeName(detailRequestData.getAuditTypeName());
        totalData.setDataFlag(detailRequestData.getDataFlag());
        totalData.setProjectDept(detailRequestData.getProjectDept());
        totalData.setProCodeYellowLimits(detailRequestData.getProCodeYellowLimits());
        totalData.setProCodeTime(detailRequestData.getProCodeTime());
        totalData.setForeignType(detailRequestData.getForeignType());
        totalData.setForeignTypeName(detailRequestData.getForeignTypeName());
        totalData.setBmFlag(detailRequestData.getBmFlag());
        totalData.setOperateDate(detailRequestData.getOperateDate());
        totalData.setAdmdivCode(detailRequestData.getAdmdivCode());
        totalData.setAdmdivName(detailRequestData.getAdmdivName());
        totalData.setAreaDetailName(detailRequestData.getAreaDetailName());
        totalData.setApproveUnitId(detailRequestData.getApproveUnitId());
        totalData.setApproveUnitName(detailRequestData.getApproveUnitName());
        totalData.setTotalMoney(detailRequestData.getTotalMoney());
        totalData.setIndustry(detailRequestData.getIndustry());
        totalData.setIndustryName(detailRequestData.getIndustryName());
        totalData.setScaleContent(detailRequestData.getScaleContent());
        totalData.setProjectStartTime(detailRequestData.getProjectStartTime());
        totalData.setProjectEndTime(detailRequestData.getProjectEndTime());
        totalData.setProjectAddress(detailRequestData.getProjectAddress());
        totalData.setProjectAddressDetail(detailRequestData.getProjectAddressDetail());
        totalData.setCountryName(detailRequestData.getCountryName());
        totalData.setContinentName(detailRequestData.getContinentName());
        totalData.setLegalDeptName(detailRequestData.getLegalDeptName());
        totalData.setLegalCertno(detailRequestData.getLegalCertno());
        totalData.setLegalPersonName(detailRequestData.getLegalPersonName());
        totalData.setLegalPersonMobile(detailRequestData.getLegalPersonMobile());
        totalData.setLeaderName(detailRequestData.getLeaderName());
        totalData.setLeaderMobile(detailRequestData.getLeaderMobile());
        totalData.setContactName(detailRequestData.getContactName());
        totalData.setContactMobile(detailRequestData.getContactMobile());
        totalData.setRecordTime(detailRequestData.getRecordTime());
        totalData.setProjectAddressName(detailRequestData.getProjectAddressName());
        totalData.setUseLevelName(detailRequestData.getUseLevelName());
        totalData.setProjectNo(detailRequestData.getProjectNo());
        totalData.setInternetUserAccount(detailRequestData.getInternetUserAccount());
        totalData.setUserIdCode(detailRequestData.getUserIdCode());
        totalData.setCreditCode(detailRequestData.getCreditCode());
        totalData.setWzUserId(detailRequestData.getWzUserId());
        totalData.setDealOpinion(detailRequestData.getDealOpinion());
        totalData.setProjectDirId(detailRequestData.getProjectDirId());
        totalData.setAdmdivId(detailRequestData.getAdmdivId());
        totalData.setHistoryFlag(detailRequestData.getHistoryFlag());
        totalData.setDeptName(detailRequestData.getDeptName());
        totalData.setIsHandleTogether(detailRequestData.getIsHandleTogether());
        totalData.setCentralDeptCode(detailRequestData.getCentralDeptCode());
        //totalData.setHistorys(detailRequestData.getHistorys());
        totalData.setTargets(detailRequestData.getTargets());
        totalData.setHasApproveInfo(detailRequestData.getHasApproveInfo());
        totalData.setHasBidInfo(detailRequestData.getHasBidInfo());
        totalData.setHasSuperviseInfo(detailRequestData.getHasSuperviseInfo());
        totalData.setHasConstructionInfo(detailRequestData.getHasConstructionInfo());
        totalData.setBaId(detailRequestData.getBaId());
        totalData.setStateFlagName(detailRequestData.getStateFlagName());
        totalData.setFinishDate(detailRequestData.getFinishDate());
        totalData.setFullName(detailRequestData.getFullName());
        totalData.setBaState(detailRequestData.getBaState());
        totalData.setLxUnit(detailRequestData.getLxUnit());
        totalData.setProjectStarttimeS(detailRequestData.getProjectStarttimeS());
        totalData.setProjectEndtimeS(detailRequestData.getProjectEndtimeS());
        totalData.setDataSource(detailRequestData.getDataSource());
        return totalData;
    }
}
